cmake_minimum_required(VERSION 3.5)
project(ecorecample)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lboost_system -pedantic -Wextra  -lpthread")

set(SOURCE_FILES main.cpp)
#add_subdirectory(third_party/crow)

find_package(Protobuf REQUIRED)
include_directories(${Protobuf_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
#protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS foo.proto)

find_package(Boost 1.52 COMPONENTS system thread REQUIRED )
#include_directories(${Boost_INCLUDE_DIR})
#
set(PROJECT_INCLUDE_DIR
    ${PROJECT_SOURCE_DIR}/include
)



include_directories(${PROJECT_INCLUDE_DIR})
add_executable(ecorecample ${SOURCE_FILES})
target_link_libraries(ecorecample ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})

